﻿using HPIT_LiuzuPoint.Business;
using HPIT_LiuzuPoint.Entity.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HPIT_LiuzuPoint.Web.Controllers
{
    
    public class StoreController : Controller
    {
        private StoreService _StoreService = new StoreService();
        public ActionResult Index()
        {
            return View();
        }
       

        [HttpPost]
        public ActionResult Stores(ShopViewModel viewModel)
        {
            //调用业务逻辑层中的分页方法
            var result = _StoreService.Stores(viewModel);

            //OperateResult中的Data属性包含的分页的数据
            return Json(result.Data);
        }
    }
}